package com.da.javatest.leetCode;

/**
 * @author chenlida
 * @date 2019/1/18 11:30
 * @description
 */
public class Code191 {
    public static void main(String[] args) {
        new Code191().hammingWeight(-3);
    }

    public int hammingWeight(int n) {
        System.out.println(Integer.toBinaryString(n));
        return Integer.toBinaryString(n).replace("0", "").length();
    }
}
